<?php


function getRootDir() {
    include('../conf/config.inc.php');
    $dir = dirname(getcwd()) . DIRECTORY_SEPARATOR . $fsConfig['fileSystemDir'];
    return $dir;
}

function getHostBaseDir() {
    include '../conf/config.inc.php';
    /*$regex = "\/(administrator\/){1}([a-z]+.[a-z]*(\/)*)*(\?[a-z]*\=[0-9]*)*";
    $ppp = $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
    return preg_replace("/$regex/", "", $ppp);*/
    return $_SERVER["SERVER_NAME"] . "/" . $applicationConfig['baseDir'];
}

function getFileSystemDir() {
    include('../conf/config.inc.php');
    $dir = $fsConfig['fileSystemDir'];
    return $dir;
}

?>
